
#include "SpecializedParameters.h"
#include "../CastingRoutines.h"

using namespace ttg_internal::utils;

//-----------------------
//--- ParameterDouble ---
//-----------------------

double ParameterDouble::DoubleValue::get()
{
	double res;
	if (ttg::strings::isFloat(CastingRoutines::castString(Value), res))
		return res;
	return 0.0;
}

void ParameterDouble::DoubleValue::set(double value)
{
	Value = value.ToString()->Replace(',', '.');
}

